unit ufrmCadSituacaoEd;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, uDMConexao, DB, ZAbstractRODataset, ZAbstractDataset, ZDataset,
  ExtCtrls, DBCtrls, StdCtrls, Mask, ufrmMdiChildPadrao;

type
  TfrmCadSituacaoEd = class(TfrmMdiChildPadrao)
    dsSituacao: TDataSource;
    zqrySituacao: TZQuery;
    zqrySituacaoID: TIntegerField;
    zqrySituacaoNOME: TStringField;
    zqrySituacaoDESCRICAO: TStringField;
    lbl1: TLabel;
    dbedt1: TDBEdit;
    lbl2: TLabel;
    dbmmoDESCRICAO: TDBMemo;
    dbnvgr1: TDBNavigator;
    procedure FormCreate(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmCadSituacaoEd: TfrmCadSituacaoEd;

implementation

{$R *.dfm}

procedure TfrmCadSituacaoEd.FormCreate(Sender: TObject);
begin
  zqrySituacao.Open;
end;

procedure TfrmCadSituacaoEd.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
  inherited;
  if Assigned(OnRetorno) then
    Retornar(mrNone);
end;

end.
